<%@ page import="com.kuang.pojo.people" %><%--
  Created by IntelliJ IDEA.
  User: wangxiaoping
  Date: 2024/8/25
  Time: 11:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>people</title>
</head>
<body>
<%
//  people people =  new people();
//  people.setId(2);
//  people.setUsername("小狂神");
//  people.setAge(18);
//  people.setAddress("西安");
%>
<jsp:useBean id="people" class="com.kuang.pojo.people" scope="page"/>

<jsp:setProperty name="people" property="id" value="1"/>
<jsp:setProperty name="people" property="username" value="小狂神"/>
<jsp:setProperty name="people" property="age" value="18"/>
<jsp:setProperty name="people" property="address" value="西安"/>

姓名：<jsp:getProperty name="people" property="username"/><br/>
年龄：<jsp:getProperty name="people" property="age"/><br/>
地址：<jsp:getProperty name="people" property="address"/><br/>
<%
//  System.out.println(people.getUsername());
//  out.println(people.getAge()+"<br/>");
//  out.println(people.getAddress()+"<br/>");
%>
</body>
</html>
